{% extends 'base.html' %}

{% block content %}
  {% with id = quote.key().id() %}
  <div class="quote">
    <div class="quote-footer">
      <span class="quote-author"><img alt="Пользователь" src="/static/user.png"/><a href="/author/{{ quote.author }}">{{ quote.author }}</a></span>
      <span class="quote-source">(<a href="{{ quote.source }}">Источник</a>)</span>
      <span class="quote-links"><a href="/{{ id }}/discuss">Обсуждение</a> &nbsp; <a href="/{{ id }}">Ссылка</a></span>
    </div>
    <div class="quote-content">{{ quote.content|nl2br }}</div>
  </div>
  {% endwith %}
{% endblock %}

